Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hive: Do not validate payload attributes if nil or syncing and pre-cancun check #9413

Merged
merged 3 commits into from
Feb 10, 2024

Conversation

racytech
Copy link
Contributor

@racytech racytech commented Feb 9, 2024

This PR partially fixes #9407

if payloadAttributes == nil || status.Status != engine_types.ValidStatus {
return &engine_types.ForkChoiceUpdatedResponse{PayloadStatus: status}, nil
}

if payloadAttributes != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change if payloadAttributes != nil is superfluous

@somnathb1
Copy link
Contributor

@racytech Have you checked the sequence of messages for the scenario - status is not valid but also has a potential InvalidPayloadAttributesErr.
Because with this shuffle, that will be affected

@racytech
Copy link
Contributor Author

racytech commented Feb 9, 2024

In this case we can't return both errors. one or another, whichever comes first... it happens that status check has to be first , so if it's not valid we not going to proceed to attributes validation and payload building

@racytech racytech changed the title Hive: Do not validate payload attributes if nil or syncing Hive: Do not validate payload attributes if nil or syncing and pre-cancun check Feb 9, 2024
@racytech racytech requested a review from yperbasis February 9, 2024 20:08
@racytech racytech merged commit b79f28d into erigontech:devel Feb 10, 2024
7 checks passed
@VBulikov VBulikov mentioned this pull request Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remaining Hive Cancun Test Failures
4 participants